<template>
  
  <div>
      <!-- <h2>冰淇淋</h2>
      <p>今日特价</p>
      <p>18</p>
      <p>快来购买</p> -->

      <h2>{{title}}</h2>
      
      <p >{{price}}</p>
      <p>{{buy}}</p>
      <button @click="kanjia">砍一刀</button>
  </div>
</template>

<script>
export default {
props:["title","price","buy","index"],
methods:{
    kanjia(){
        this.$emit("kan",this.index,1)
    }
}

}
</script>

<style>

</style>